package com.disv.support.config;

import com.disv.service.resp.ReturnResp;
import lombok.Getter;

public enum AppRespCode implements ReturnResp {
    DING_DING_GET_AUTH_INFO_FAIL("100001", "钉钉获取企业授权信息失败"),
    DING_DING_GET_SUITE_ACCESS_TOKEN_FAIL("100002", "钉钉获取SuiteAccessToken失败"),
    DING_DING_GET_ORG_AUTH_INFO_FAIL("100003", "钉钉获取企业认证信息失败"),
    DING_DING_GET_DEPARTMENT_LIST_SUB_FAIL("100004", "钉钉获取部门列表信息失败"),
    DING_DING_GET_CROP_TOKEN_FAIL("100005", "钉钉获取getCorpToken失败"),
    DING_DING_GET_DEPARTMENT_USER_LIST_FAIL("100006", "钉钉获取部门用户详情失败"),
    DING_DING_GET_DEPARTMENT_DETAILS_FAIL("100007", "钉钉获取部门详情信息失败"),
    DING_DING_GET_ACCESS_TOKEN_FAIL("100008", "钉钉获取access_token失败"),
    ;

    @Getter
    private final String code;

    @Getter
    private final String message;

    AppRespCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getModule() {
        return Constant.APP;
    }
}
